<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body">

        <div class="layui-form-item">
            <label class="layui-form-label">进店头像</label>
            <div class="layui-input-block">
                <img src="{$vo.photo}" width="60px" height="60px">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">FaceId</label>
            <div class="layui-input-block">
                <input name="face_id" value='{$vo.face_id|default="-"}' class="layui-input layui-disabled">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">进/出</label>
            <div class="layui-input-block">
                <input name="is_come" value='{if $is_come.is_come==1}进{else}出{/if}' class="layui-input layui-disabled">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">初次进店时间</label>
            <div class="layui-input-block">
                <input name="enter_time" value="{if $vo.enter_time>0}{:date('Y-m-d H:i:s',$vo.enter_time)}{else}-{/if}" class="layui-input layui-disabled">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">离开时间</label>
            <div class="layui-input-block">
                <input name="leave_time" value="{if $vo.leave_time>0}{:date('Y-m-d H:i:s',$vo.leave_time)}{else}-{/if}" class="layui-input layui-disabled">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">停留时长</label>
            <div class="layui-input-block">
                <input name="stay_time" value="{if $vo.stay_time>0}{$vo.stay_time}{else}-{/if}" class="layui-input layui-disabled">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-block">
                <input name="sex" value="{if $vo.sex==1}男{elseif $vo.sex==2}女{else}-{/if}" class="layui-input layui-disabled">
                <p class="help-block"></p>
            </div>
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label">年龄</label>
            <div class="layui-input-block">
                <input name="age" value="{$vo.age|default='-'}" class="layui-input layui-disabled">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">摄像机</label>
            <div class="layui-input-block">
                <input name="equipment_id" value="{$vo.equipment_id|default='-'}" class="layui-input layui-disabled">
                <p class="help-block"></p>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">店铺</label>
            <div class="layui-input-block">
                <input name="name" value="{$vo.name|default='-'}" class="layui-input layui-disabled">
                <p class="help-block"></p>
            </div>
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="remark" class="layui-textarea">{$vo.remark}</textarea>
                <p class="help-block"></p>
            </div>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>